From 6455be4d5bc9152c67877cc27a7a74a8ea4e7a6f Mon Sep 17 00:00:00 2001 From: tth Date: Thu, 7 Jul 2022 00:05:53 +0200 Subject: [PATCH] rudimentaire --- .gitignore | 4 +++- Tests/README.md | 4 ++++ Tests/a.sh | 20 ++++++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 Tests/a.sh diff --git a/.gitignore b/.gitignore index 6c88bc0..2045157 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.o libtthimage.a +cscope.out Lib/foo Lib/testtga @@ -9,8 +10,9 @@ Lib/t_png Lib/t_t16x24 Lib/testbmp -Tools/genplot2 +Tests/*.tga +Tools/genplot2 Tools/tga_alpha Tools/tga_cadre Tools/tga_combine diff --git a/Tests/README.md b/Tests/README.md index 3d5a6f5..13e755e 100644 --- a/Tests/README.md +++ b/Tests/README.md @@ -2,3 +2,7 @@ Tester, c'est douter. + +## Mais encore ? + +Dans le répertoire `Lib/` il y a un `essais.c` assez prometeur. diff --git a/Tests/a.sh b/Tests/a.sh new file mode 100755 index 0000000..01e93f2 --- /dev/null +++ b/Tests/a.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +SRC="/tmp/src.tga" +BW="/tmp/bw.tga" + +DST="foo.tga" + +../Tools/tga_tools version + +../Tools/tga_tools mk_rgb $SRC 800 600 30 40 50 +../Tools/tga_effects $SRC noise $SRC 255 +../Tools/tga_effects $SRC noise $SRC 255 +# display $SRC + +../Tools/tga_effects $SRC gray $BW +# display $BW + +../Tools/tga_combine $SRC $BW circle0 $DST 0 +display $DST +