-
Notifications
You must be signed in to change notification settings - Fork 1
/
aarch64test
63 lines (56 loc) · 1.85 KB
/
aarch64test
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
59
60
61
62
63
CXX:=g++
TESTFLAGS:=-g -Og -D_HIDE_WARNING
CXXFLAGS:=-std=c++20 -Wall -Wextra
OS:=$(shell uname)
SRC:=tests
SRC_FILES:=$(wildcard $(SRC)/*.cpp)
OBJ:=$(patsubst $(SRC)/%.cpp,$(SRC)/%.out,$(SRC_FILES))
# -------------------------- run test programs ---------------------------
header_test: $(OBJ)
@echo OS : $(OS)
@echo "----------------------------------------------------"
@echo "Running Initial Tests..."
@./$(SRC)/QuarterRound_test.out
@./$(SRC)/BlockFunction_test.out
@./$(SRC)/Encryption_test.out
@./$(SRC)/poly1305_mac_test.out
@./$(SRC)/poly1305_keygen.out
@./$(SRC)/chacha20_aead_enc_dec.out
@echo "----------------------------------------------------"
@echo "Running Additional Tests..."
@./$(SRC)/BlockFunction_test1.out
@./$(SRC)/BlockFunction_test2.out
@./$(SRC)/BlockFunction_test3.out
@./$(SRC)/BlockFunction_test4.out
@./$(SRC)/BlockFunction_test5.out
@./$(SRC)/ChaCha20Encryption_t1.out
@./$(SRC)/ChaCha20Encryption_t2.out
@./$(SRC)/ChaCha20Encryption_t3.out
@./$(SRC)/Poly1305_mac_t1.out
@./$(SRC)/Poly1305_mac_t2.out
@./$(SRC)/Poly1305_mac_t3.out
@./$(SRC)/Poly1305_mac_t4.out
@./$(SRC)/Poly1305_mac_t5.out
@./$(SRC)/Poly1305_mac_t6.out
@./$(SRC)/Poly1305_mac_t7.out
@./$(SRC)/Poly1305_mac_t8.out
@./$(SRC)/Poly1305_mac_t9.out
@./$(SRC)/Poly1305_mac_t10.out
@./$(SRC)/Poly1305_mac_t11.out
@./$(SRC)/Poly1305_keygen_t1.out
@./$(SRC)/Poly1305_keygen_t2.out
@./$(SRC)/Poly1305_keygen_t3.out
@./$(SRC)/ChaCha20Poly1305_decrypt.out
@./$(SRC)/ChaCha20Poly1305_decrypt_nonceV.out
# -------------------------- test program compilation ---------------------------
$(SRC)/%.out: $(SRC)/%.cpp
@echo "compiling test program - compiler : $(CXX)"
@$(CXX) $(TESTFLAGS) $(CXXFLAGS) -o $@ $<
clean:
ifeq ($(OS), Linux)
@echo "deleting compiled test programs"
@rm ./$(SRC)/*.out
else
@echo "deleting compiled test programs"
del tests\*.out
endif