-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
28 lines (22 loc) · 1005 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pwd=$(shell pwd)
default: test
test:
@echo * Running tests.
rm -rf results
mkdir results
{ cd /etc ; $(pwd)/scripts/gordo ; } > results/gordo.result
{ cd data/mp3-forest ; $(pwd)/scripts/mp3dups ; } > results/mp3dups.result
./scripts/recap < data/names.txt > results/recap.result
./scripts/oxbane > results/oxbane.result
./scripts/rot13 < data/magic-words.rot13 > results/rot13.result
cp -v -r data/spaced-out results/space-invader.result
{ cd results/space-invader.result ; $(pwd)/scripts/space-invader ; }
./scripts/intersect data/primes.set data/odds.set > results/intersect.result
./scripts/crackgen data/words > results/crackgen.result
./scripts/passcrack data/crackable.db results/crackgen.result > results/passcrack.result
if ./scripts/validate data/accounts.db matt love; then echo 0 > results/validate.result; fi
if ./scripts/validate data/accounts.db matt foobar; then echo 1 > results/validate.result; fi
compare:
diff -r results expected-results
clean:
rm -rf results