#!/bin/sh
#
#!qprep
#
# NAME
#   test50.qprep: brief test of valid qprep directives
#
#
# USAGE
#   qprep [qprep options] test50.qprep
#
#
# DESCRIPTION
#   This file contains many valid qprep directives,
#   along with directive values valid for the corresponding directive key.
#   The file also contains some stuff after the preamble that qprep
#   should pass through without interpretation, including some things
#   that would otherwise be invalid and valid qprep directives.
#
#   The file is part of a suite of inputs to test qprep.
#
#   Qprep should process this file without any errors.
#
#   The output should go into a file named "test50.qprep.pst",
#   unless the command line contains an out_script directive
#   that provides an alternative output file name.
#   That script should be submitted to the queue, and execute.
#
#
# AUTHOR
#   Written 2002 by Michael J. Gourlay
#

####
#### Properties associated with parsing:
####

# Qprep control directives
#
#PSTQ erase               =n
#PSTQ silent              =n
#PSTQ submit              =y 
# #PSTQ verbose_script      =Y
#PSTQ verbose_script      =n

# Job environment directives
#PSTQ account             =myAccount
#PSTQ username            =myUsername
#PSTQ export_vars         =y
#PSTQ shell               =/bin/sh

# Reporting directives
#PSTQ stderr              =test50.err
#PSTQ stdout              =test50.out
#PSTQ keep                =stderr,stdout
#PSTQ mail                =a,b,e,r,t
#PSTQ mail_to             =myEmailAddress

# Job control directives
#PSTQ queue               =myQueue
#PSTQ parallel_env        =pe_chal_24hr
#PSTQ job_name            =myJobName
#PSTQ checkpoint          =n
#PSTQ checkpoint          =s

# Limit directives
#PSTQ nodes                =2
#PSTQ cpus_per_node        =1
#PSTQ wall_time            =00:05
#PSTQ process_cpu_time     =00:05
#PSTQ total_cpu_time       =00:05
#PSTQ proc_file_size       =5000
#PSTQ total_file_size      =6000
#PSTQ nice                 =20
#PSTQ process_memory       =1000
#PSTQ total_memory         =1000
#
# Qprep should write anything it wants via qprepFinishPreambleCallback,
# then trivially pass through everything after the END_OF_PREAMBLE line.
# 
# #PSTQ END_OF_PREAMBLE

echo "test50.qprep: This tests explicit versus implicit end-of-preamble."

echo "test50.qprep: name='$0' args='$*'"

#PSTQ Qprep Even ignores this line, which would otherwise be a syntax error.
#PSTQ nonsense = Qprep ignores this too, another syntax error.
#PSTQ username = Qprep ignores this too, though it contains valid directive.

echo "This is the second-to-last line in 'test50.qprep'."
echo "test50: Output after this line comes from qprepFinishScriptCallback."
