Sponsored Content
Full Discussion: Test : Which OS are you ?
The Lounge What is on Your Mind? Test : Which OS are you ? Post 302133828 by pressy on Sunday 26th of August 2007 12:34:03 PM
Old 08-26-2007
oh my god... windows 98 ........
think i have to chance my life Smilie

gP
 

5 More Discussions You Might Find Interesting

1. Solaris

test and .test in same directory

i am using solaris 5.10. i can create two different files "test" and ".test" in the same directory. now suppose i want to change the attribute of the hidden file .test to visible is it possible??? since "." is just an attribute to mark a file hidden why is unix allows creation of "file" and... (14 Replies)
Discussion started by: vikashtulsiyan
14 Replies

2. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

3. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

4. Shell Programming and Scripting

Prefixing test case methods with letter 'test'

Hi, I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the... (5 Replies)
Discussion started by: royalibrahim
5 Replies

5. Shell Programming and Scripting

Shc : trying to test functionality "test" compiling but can not execute

I am testing shc to see if it would help with my need. Im at a point where Im trying to compile and test the "test.ksh" file that comes in the tar ball : shc-3.8.9> shc -v -r -f test.ksh shc shll=ksh shc =-c shc =exec '%s' "$@" shc = shc opts= shc: cc test.ksh.x.c -o test.ksh.x... (7 Replies)
Discussion started by: popeye
7 Replies
SQL::Abstract::Test(3)					User Contributed Perl Documentation				    SQL::Abstract::Test(3)

NAME
SQL::Abstract::Test - Helper function for testing SQL::Abstract SYNOPSIS
use SQL::Abstract; use Test::More; use SQL::Abstract::Test import => [qw/ is_same_sql_bind is_same_sql is_same_bind eq_sql_bind eq_sql eq_bind /]; my ($sql, @bind) = SQL::Abstract->new->select(%args); is_same_sql_bind($given_sql, @given_bind, $expected_sql, @expected_bind, $test_msg); is_same_sql($given_sql, $expected_sql, $test_msg); is_same_bind(@given_bind, @expected_bind, $test_msg); my $is_same = eq_sql_bind($given_sql, @given_bind, $expected_sql, @expected_bind); my $sql_same = eq_sql($given_sql, $expected_sql); my $bind_same = eq_bind(@given_bind, @expected_bind); DESCRIPTION
This module is only intended for authors of tests on SQL::Abstract and related modules; it exports functions for comparing two SQL statements and their bound values. The SQL comparison is performed on abstract syntax, ignoring differences in spaces or in levels of parentheses. Therefore the tests will pass as long as the semantics is preserved, even if the surface syntax has changed. Disclaimer : the semantic equivalence handling is pretty limited. A lot of effort goes into distinguishing significant from non- significant parenthesis, including AND/OR operator associativity. Currently this module does not support commutativity and more intelligent transformations like Morgan laws, etc. For a good overview of what this test framework is capable of refer to "t/10test.t" FUNCTIONS
is_same_sql_bind is_same_sql_bind($given_sql, @given_bind, $expected_sql, @expected_bind, $test_msg); Compares given and expected pairs of "($sql, @bind)", and calls "ok" in Test::Builder on the result, with $test_msg as message. If the test fails, a detailed diagnostic is printed. For clients which use Test::More, this is the one of the three functions ("is_same_sql_bind", "is_same_sql", "is_same_bind") that needs to be imported. is_same_sql is_same_sql($given_sql, $expected_sql, $test_msg); Compares given and expected SQL statements, and calls "ok" in Test::Builder on the result, with $test_msg as message. If the test fails, a detailed diagnostic is printed. For clients which use Test::More, this is the one of the three functions ("is_same_sql_bind", "is_same_sql", "is_same_bind") that needs to be imported. is_same_bind is_same_bind(@given_bind, @expected_bind, $test_msg); Compares given and expected bind values, and calls "ok" in Test::Builder on the result, with $test_msg as message. If the test fails, a detailed diagnostic is printed. For clients which use Test::More, this is the one of the three functions ("is_same_sql_bind", "is_same_sql", "is_same_bind") that needs to be imported. eq_sql_bind my $is_same = eq_sql_bind($given_sql, @given_bind, $expected_sql, @expected_bind); Compares given and expected pairs of "($sql, @bind)". Similar to "is_same_sql_bind", but it just returns a boolean value and does not print diagnostics or talk to Test::Builder. eq_sql my $is_same = eq_sql($given_sql, $expected_sql); Compares the abstract syntax of two SQL statements. Similar to "is_same_sql", but it just returns a boolean value and does not print diagnostics or talk to Test::Builder. If the result is false, the global variable "$sql_differ" will contain the SQL portion where a difference was encountered; this is useful for printing diagnostics. eq_bind my $is_same = eq_sql(@given_bind, @expected_bind); Compares two lists of bind values, taking into account the fact that some of the values may be arrayrefs (see "bindtype" in SQL::Abstract). Similar to "is_same_bind", but it just returns a boolean value and does not print diagnostics or talk to Test::Builder. GLOBAL VARIABLES
$case_sensitive If true, SQL comparisons will be case-sensitive. Default is false; $parenthesis_significant If true, SQL comparison will preserve and report difference in nested parenthesis. Useful while testing "IN (( x ))" vs "IN ( x )". Defaults to false; $order_by_asc_significant If true SQL comparison will consider "ORDER BY foo ASC" and "ORDER BY foo" to be different. Default is false; $sql_differ When "eq_sql" returns false, the global variable $sql_differ contains the SQL portion where a difference was encountered. SEE ALSO
SQL::Abstract, Test::More, Test::Builder. AUTHORS
Laurent Dami, <laurent.dami AT etat geneve ch> Norbert Buchmuller <norbi@nix.hu> Peter Rabbitson <ribasushi@cpan.org> COPYRIGHT AND LICENSE
Copyright 2008 by Laurent Dami. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.18.2 2014-01-16 SQL::Abstract::Test(3)
All times are GMT -4. The time now is 02:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy