-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (51 loc) · 1.42 KB
/
Makefile
File metadata and controls
58 lines (51 loc) · 1.42 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
all: main.cpp encrypt.cpp decrypt.cpp treelib.cpp util.cpp
g++ -o scale -std=c++20 main.cpp encrypt.cpp decrypt.cpp treelib.cpp util.cpp
scale:
make
clear:
make clean
clean:
rm -f scale
rm -rf out/*
gigaclean:
rm test/gigabin.bin
gb: gigatest.cpp
g++ -o giga -std=C++20 gigatest.cpp
gigatest: scale
make
make gb
echo "Testing binary gigabyte"
./scale -c test/gigatest.bin out/gigatest.sca
./scale -d out/gigatest.sca out/gigatest.dcs
echo "Binary gigabyte diff below:"
diff test/gigatest.bin out/gigatest.dcs
make clean
make gigaclean
test: scale
make
echo "Testing Hello"
./scale -c test/hello.txt out/hello.sca
./scale -d out/hello.sca out/hello.dcs
echo "Hello diff below:"
diff test/hello.txt out/hello.dcs
echo "Testing Opcodes"
./scale -c test/opcodes.json out/opcodes.sca
./scale -d out/opcodes.sca out/opcodes.dcs
echo "Opcodes diff below:"
diff test/opcodes.json out/opcodes.dcs
echo "Testing 2 MB"
./scale -c test/2mboftext.txt out/2mb.sca
./scale -d out/2mb.sca out/2mb.dcs
echo "2 MB diff below:"
diff test/2mboftext.txt out/2mb.dcs
echo "Testing testfile"
./scale -c test/testfile.txt out/testfile.sca
./scale -d out/testfile.sca out/testfile.dcs
echo "Testfile diff below:"
diff test/testfile.txt out/testfile.dcs
echo "Testing binary"
./scale -c test/binary.bin out/binary.sca
./scale -d out/binary.sca out/binary.dcs
echo "Binary diff below:"
diff test/binary.bin out/binary.dcs
make clean