seahag/test/Makefile

93 lines
3.2 KiB
Makefile
Raw Normal View History

2023-08-08 01:40:21 -04:00
# _,.---._ .-._ .--.-. ,--.--------.
# _,..---._ ,-.' , - `. /==/ \ .-._/==/ //==/, - , -\
# /==/, - \ /==/_, , - \|==|, \/ /, |==\ -\\==\.-. - ,-./
# |==| _ _\==| .=. |==|- \| | \==\- \`--`\==\- \
# |==| .=. |==|_ : ;=: - |==| , | -| `--`-' \==\_ \
# |==|,| | -|==| , '=' |==| - _ | |==|- |
# |==| '=' /\==\ - ,_ /|==| /\ , | |==|, |
# |==|-, _`/ '.='. - .' /==/, | |- | /==/ -/
# `-.`.____.' `--`--'' `--`./ `--` `--`--`
# _ __ ,---. .-._ .=-.-. _,.----.
# .-`.' ,`..--.' \ /==/ \ .-._ /==/_ /.' .' - \
# /==/, - \==\-/\ \ |==|, \/ /, /==|, |/==/ , ,-'
# |==| _ .=. /==/-|_\ | |==|- \| ||==| ||==|- | .
# |==| , '=',\==\, - \ |==| , | -||==|- ||==|_ `-' \
# |==|- '..'/==/ - ,| |==| - _ ||==| ,||==| _ , |
# |==|, | /==/- /\ - \|==| /\ , ||==|- |\==\. /
# /==/ - | \==\ _.\=\.-'/==/, | |- |/==/. / `-.`.___.-'
# `--`---' `--` `--`./ `--``--`-`
#
# @(#)Copyright (c) 2023, Nathan D. Fisher.
#
# This is free software. It comes with NO WARRANTY.
# Permission to use, modify and distribute this source code
# is granted subject to the following conditions.
# 1/ that the above copyright notice and this notice
# are preserved in all copies and that due credit be given
# to the author.
# 2/ that any changes to this code are clearly commented
# as such so that the author does not get blamed for bugs
# other than his own.
#
2023-08-22 22:47:15 -04:00
include ../config.mk
2023-08-09 11:41:06 -04:00
CFLAGS += -I../include
LDLIBS += ../libhaggis.a
2023-08-22 22:47:15 -04:00
LDLIBS += $(LIBS)
2023-08-08 01:40:21 -04:00
tests += store_u16
tests += load_u16
tests += store_u32
tests += load_u32
tests += store_u64
tests += load_u64
2023-08-09 15:28:02 -04:00
tests += store_header
tests += check_header
2023-08-09 11:41:06 -04:00
tests += store_device
tests += load_device
2023-08-09 12:02:37 -04:00
tests += store_md5
tests += load_md5
tests += store_sha1
tests += load_sha1
tests += store_sha256
tests += load_sha256
2023-08-09 15:28:02 -04:00
tests += init_file_md5
tests += init_file_sha1
tests += init_file_sha256
tests += store_file_md5
tests += load_file_md5
tests += store_file_sha1
tests += load_file_sha1
tests += store_file_sha256
tests += load_file_sha256
2023-08-13 22:57:15 -04:00
tests += fnv1a_hash_inode
tests += fnv1a_hash_str
tests += linkmap_init
2023-08-22 22:37:59 -04:00
tests += linkmap_put
2023-09-13 16:41:59 -04:00
tests += create_dir_node
tests += create_symlink_node
tests += create_fifo_node
tests += create_dev_node
tests += create_file_node
tests += mq_push_pop
tests += extract_dev_node
tests += extract_dir_node
2023-10-05 10:40:12 -04:00
tests += extract_fifo_node
2023-11-12 19:04:40 -05:00
tests += extract_file_node
tests += extract_symlink_node
2023-12-01 16:03:31 -05:00
tests += extract_hardlink_node
2023-08-13 22:57:15 -04:00
total != echo $(tests) | wc -w | awk '{ print $$1 }'
2023-08-09 11:41:06 -04:00
.PHONY: test
2024-04-16 20:38:28 -04:00
test: $(tests) runner output
./runner $(tests)
2023-08-09 11:41:06 -04:00
output:
@ [-d $@ ] 2>/dev/null || install -d $@
.PHONY: clean
clean:
2024-04-16 20:38:28 -04:00
rm -rf $(tests) runner output/*