aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rw-r--r--README.md6
-rw-r--r--main.c4
-rw-r--r--screenshot.pngbin436568 -> 236347 bytes
4 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7e5fc71..012a49e 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/08 03:06:59 by cacharle #+# #+# #
-# Updated: 2020/02/08 20:42:54 by cacharle ### ########.fr #
+# Updated: 2020/02/08 21:02:52 by cacharle ### ########.fr #
# #
# **************************************************************************** #
@@ -49,17 +49,23 @@ SRC = main.c \
OBJ = $(SRC:.c=.o)
run: pretty
+runbonus: prettybonus
+prettybonus: allbonus pretty
pretty: all
./$(NAME) 2> /dev/null | $(PYTHON) prettier.py
+run_rawbonus: allbonus run_raw
run_raw: all
./$(NAME) 2> /dev/null
+run_debugbonus: allbonus run_debug
run_debug: all
./$(NAME)
all: $(NAME)
+allbonus: CCFLAGS += -D LIBASM_TEST_BONUS
+allbonus: all
$(NAME): libasm_all $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
diff --git a/README.md b/README.md
index bb65945..aeb7d62 100644
--- a/README.md
+++ b/README.md
@@ -6,9 +6,13 @@ Unit tests for the libasm project.
## Usage
-- `> make` show regular pretty output.
+- `> make run` show regular pretty output.
- `> make run_raw` show parsable output.
+### Bonus
+
+Suffix all Makefile commands with `bonus` i.e `> make runbonus`.
+
## Configuration
The default path to your libasm is `../libasm`. You can modify it in the Makefile.
diff --git a/main.c b/main.c
index fbd247b..7c136f8 100644
--- a/main.c
+++ b/main.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/08 03:06:45 by cacharle #+# #+# */
-/* Updated: 2020/02/08 20:43:51 by cacharle ### ########.fr */
+/* Updated: 2020/02/08 20:58:13 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -24,10 +24,12 @@ main(void)
#endif
ft_strdup_test();
+#ifdef LIBASM_TEST_BONUS
ft_atoi_base_test();
ft_list_push_front_test();
ft_list_size_test();
ft_list_sort_test();
ft_list_remove_if_test();
+#endif
return 0;
}
diff --git a/screenshot.png b/screenshot.png
index a64181a..05b9d0f 100644
--- a/screenshot.png
+++ b/screenshot.png
Binary files differ