logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: f275122c80c6c4c4ed9c85c915ece89c39b634b1
parent 1c2f22f8165ceb3c336ac09e6aad91e7a700c8b0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  8 Jun 2021 05:30:05 +0200

test-bin/sname: New test

Diffstat:

Mtest-bin/Kyuafile1+
Atest-bin/sname16++++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/test-bin/Kyuafile b/test-bin/Kyuafile @@ -5,4 +5,5 @@ test_suite("utils") atf_test_program{name="args"} atf_test_program{name="basename"} atf_test_program{name="dirname"} +atf_test_program{name="sname"} atf_test_program{name="xcd"} diff --git a/test-bin/sname b/test-bin/sname @@ -0,0 +1,16 @@ +#!/usr/bin/env atf-sh +atf_test_case generic +generic_body() { + atf_check -o "inline:\ +sysname=$(uname -s) +nodename=$(uname -n) +release=$(uname -r) +version=$(uname -v) +machine=$(uname -m) +" ../bin/sname +} + +atf_init_test_cases() { + cd "$(atf_get_srcdir)" + atf_add_test_case generic +}