#!/bin/sh # # some Install sanity tests # ROOT= export ROOT doit () { echo echo "*** $@ ***" $@ } echo === SGI tests ===== doit ./Install -F /tmp Install doit ./Install -F /tmp testme Install echo === BSD compat tests ===== doit ./Install -c Install /tmp ls -l /tmp/Install doit ./Install Install /tmp ls -l /tmp/Install doit ./Install -m 777 Install /tmp ls -l /tmp/Install doit ./Install -c Install Makefile /tmp ls -l /tmp/Install /tmp/Makefile doit ./Install -c -u ariel -g www -m 666 Install /tmp/zzzt ls -l /tmp/zzzt doit ./Install -c -u ariel -m 666 Install testme /tmp ls -l /tmp/Install /tmp/testme doit ./Install -m 777 -u ariel Install testme /tmp ls -l /tmp/Install /tmp/testme doit ./Install -d /tmp/gaga /tmp/papa rmdir /tmp/gaga /tmp/papa doit ./Install -s Install /tmp file /tmp/Install doit ./Install -s Install testme /tmp echo strip warning on non-elf is OK rm -f /tmp/Install /tmp/testme /tmp/zzzt /tmp/Makefile