]> git.street.me.uk Git - andy/viking.git/blame - test/check_md5_hash.sh
Fix typo word Polygonized
[andy/viking.git] / test / check_md5_hash.sh
CommitLineData
bd27baa4 1#!/bin/sh
7e7854e8 2# Copyright: CC0
bd27baa4
RN
3test_string="Test hash of this string"
4
5expected_result=$(echo -n "$test_string" | md5sum | awk '{print $1}')
6my_result=$(./test_md5_hash "$test_string")
7
8if [ "$my_result" = "$expected_result" ]; then
9 # Success
10 exit 0
11else
12 exit 1
13fi