github.com/aitjcize/Overlord@v0.0.0-20240314041920-104a804cf5e8/test/test_shell.sh (about)

     1  #!/bin/sh
     2  #
     3  # Copyright 2015 The Chromium OS Authors. All rights reserved.
     4  # Use of this source code is governed by a BSD-style license that can be
     5  # found in the LICENSE file.
     6  
     7  INCREMENT=42
     8  n=$RANDOM
     9  echo "TEST-SHELL-CHALLENGE $n"
    10  read input
    11  [[ "$input" == "$(expr $n + $INCREMENT)" ]] && echo 'SUCCESS' || echo 'FAILED'