1#!/bin/bash 2 3# TODO: fill this out. 4# TODO: "make install" means something else, so no test_install, only callable 5# from "make tests"... 6 7[ -f testing.sh ] && . testing.sh 8 9#testing "name" "command" "result" "infile" "stdin" 10 11dd if=/dev/urandom of=random bs=64 count=1 2> /dev/null 12testing "install -D exists" \ 13 "mkdir -p a; touch a/b; install -D random a/b && cmp random a/b && echo yes" \ 14 "yes\n" "" "" 15rm -rf a random 16testing "install -D -t creates directory" \ 17 "touch a; install -Dt b a && echo yes" \ 18 "yes\n" "" "" 19rm -rf a b 20