Compare commits
2 commits
epitar-sub
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca10e8aac8 | ||
|
|
2c07b3f2f9 |
2 changed files with 18 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ $(TARGET): $(OBJS)
|
|||
@echo $(OBJS)
|
||||
|
||||
all: $(OBJS)
|
||||
$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||
$(CC) -o $(TARGET) $^ $(LDFLAGS) $(LDLIBS)
|
||||
|
||||
debug: CFLAGS += $(DBG_CFLAGS)
|
||||
debug: LDFLAGS += $(DBG_LDFLAGS)
|
||||
|
|
|
|||
|
|
@ -282,7 +282,23 @@ echo -e "\n$BBlue=== Help and Invalid Arguments ===$Color_Off"
|
|||
test_help "Help flag"
|
||||
test_invalid_args "No arguments" ""
|
||||
test_invalid_args "Invalid flag" "-z"
|
||||
test_invalid_args "Missing archive" "-c"
|
||||
test_invalid_args "Invalid flagS" "-zbk"
|
||||
test_invalid_args "Invalid position" "test.tar -h"
|
||||
test_invalid_args "Invalid flags and position" "test.tar -z"
|
||||
test_invalid_args "Invalid flags and position mix" "test.tar -zhx"
|
||||
test_invalid_args "Invalid position" "test.tar -z"
|
||||
test_invalid_args "Invalid flag mix" "-zh"
|
||||
test_invalid_args "Invalid flag mix 2" "-hnh"
|
||||
test_invalid_args "Invalid flag mix 3" "-cnc"
|
||||
test_invalid_args "Invalid flag mix 3" "-hhhz"
|
||||
test_invalid_args "Invalid flag mix 3" "-hnc"
|
||||
test_invalid_args "Invalid flag mix 3" "-cch"
|
||||
test_invalid_args "Invalid flag mix 3" "-cnc"
|
||||
test_invalid_args "Valid flags multiple" "-cc"
|
||||
test_invalid_args "Incompatible flag" "-cx"
|
||||
test_invalid_args "Missing op flag" "-v"
|
||||
test_invalid_args "Missing archive (c)" "-c"
|
||||
test_invalid_args "Missing archive (x)" "-x"
|
||||
test_invalid_args "Extract with files" "-x archive.tar file.txt"
|
||||
|
||||
echo -e "\n$BBlue=== Edge Cases ===$Color_Off"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue