Sponsored Content
Full Discussion: SunOS Solaris Differences
Top Forums UNIX for Dummies Questions & Answers SunOS Solaris Differences Post 42864 by rhfrommn on Wednesday 5th of November 2003 01:36:12 PM
Old 11-05-2003
Hello,
The technical difference is that SunOS is the operating system, while Solaris is the "operating environment" including the OS plus some other stuff. In fact, if you install Solaris 9 on a Sun server then do uname -a the OS is reported as SunOS 5.9.

However everybody uses Solaris to mean the current version of Sun's operating system so that usage is fine too.

As far as the numbers go:
SunOS 4 was also called Solaris 1. This was still based on bsd Unix. When they switched to Solaris 2 they updated the major number for SunOS to 5. So for example Solaris 2.4 uses the SunOS 5.4 operating system while Solaris 8 uses SunOS5.8. Solaris 2/SunOS 5 on up are sysV based instead of bsd.

Note - There is no such thing as Solaris 2.7, 2.8 or 2.9. It is one of my pet peeves that people call it that, even lots of Sun techs do for some reason . . . Sun changed the naming scheme after Solaris 2.6 to Solaris 7, 8, and 9 instead of following hte old 2.X nomenclature. This kinda makes sense, since each point release was a major release coming about 2 years apart on average. So having them all be 2.something was not too accurate.

Hope that wasn't too long winded, and hope it helps.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix and Solaris differences

hi guys, I am the newest dumbest person who has no clue of unix and solaris. Could someone help me by telling me what the difference is? thanks... me (4 Replies)
Discussion started by: theboxer01
4 Replies

2. Solaris

SunOS/Solaris Links

Manufacturer Links Home Page: Oracle | Hardware and Software, Engineered to Work Together Documentation: Oracle Documentation Support: Oracle Configuration Support Manager Oracle Solaris open source projects: Java.net Maintenance outage FreeWare Introduction http://www.opencsw.org/ ... (0 Replies)
Discussion started by: Perderabo
0 Replies

3. Solaris

Differences between Solaris 2.5 and 9

Hi Can anybody tell what are the great differences in Solaris 2.5 and 9? I am seeking information like differences in libraries, User Interface, Configuraion files, daemons, Packaging and archiving tools, Hardware supported etc. Please help me, as this is little urgent. Even if you can refer... (4 Replies)
Discussion started by: charlcy
4 Replies

4. UNIX for Dummies Questions & Answers

Major differences between AIX, Solaris, HP-UX, Linux

Hi All, I want to know the OS level differences between AIX, Solaris, HP-UX, Linux Apart from the vendor, H/w and command differences, any other significant points. regards, guru Charan (9 Replies)
Discussion started by: gurukottur
9 Replies

5. Solaris

Solaris vs SunOS

Hi Guys, Could you please clarify me doubts. SunOS and Solaris are they same. ? What is difference between forte and studio ? Thanks, Nagaraj G (2 Replies)
Discussion started by: ennstate
2 Replies

6. UNIX for Dummies Questions & Answers

Guide to differences between Solaris and AIX

I've been more used to Solaris, but am now working on an IBM AIX box, P650 Certain commands like "top" are no longer available. Any ideas on where I can find help on this matter? Christopher Freville Alberquerque, NM (6 Replies)
Discussion started by: Solariums
6 Replies

7. Solaris

[Solved] SSH Query differences Solaris 9/10

Hi, I am trying to SSH without a password from a Solaris 10 box to a Solaris 9 box. I am not using root user but file permissions seem to be fine... Can anyone tell me why this might not be working?! I can successfully SSH without a password from the Solaris 9 box to the Solaris 10 box,... (0 Replies)
Discussion started by: mcclunyboy
0 Replies

8. Solaris

OpenSolaris, Solaris, Solaris Express - differences

What are the differences between these systems? I have to use Oracle's product but I do not know who to choose (3 Replies)
Discussion started by: PtaQ
3 Replies

9. Solaris

Differences of Solaris zone and Solaris Container

Hi everyone! I am in dire need to know what are the differences between a solaris zone and a solaris container.. Explanations over the net are very confusing. Please help. Thanks! (8 Replies)
Discussion started by: arah
8 Replies

10. UNIX for Beginners Questions & Answers

Comparing time differences between 2 Solaris servers

Good day to all. I'm relatively new in using the Sun Solaris OS. I would like to request your expertise in helping to solve a problem that I have at work. Not sure if this has been asked before but I have tried searching through the internet to no avail. Basically I have 2 sun solaris... (8 Replies)
Discussion started by: Fossil_84
8 Replies
Test::Differences(3)					User Contributed Perl Documentation				      Test::Differences(3)

NAME
Test::Differences - Test strings and data structures and show differences if not ok SYNOPSIS
use Test; ## Or use Test::More use Test::Differences; eq_or_diff $got, "a b c ", "testing strings"; eq_or_diff @got, [qw( a b c )], "testing arrays"; ## Passing options: eq_or_diff $got, $expected, $name, { context => 300 }; ## options ## Using with DBI-like data structures use DBI; ... open connection & prepare statement and @expected_... here... eq_or_diff $sth->fetchall_arrayref, @expected_arrays "testing DBI arrays"; eq_or_diff $sth->fetchall_hashref, @expected_hashes, "testing DBI hashes"; ## To force textual or data line numbering (text lines are numbered 1..): eq_or_diff_text ...; eq_or_diff_data ...; EXPORT
This module exports three test functions and four diff-style functions: o Test functions o "eq_or_diff" o "eq_or_diff_data" o "eq_or_diff_text" o Diff style functions o "table_diff" (the default) o "unified_diff" o "oldstyle_diff" o "context_diff" DESCRIPTION
When the code you're testing returns multiple lines, records or data structures and they're just plain wrong, an equivalent to the Unix "diff" utility may be just what's needed. Here's output from an example test script that checks two text documents and then two (trivial) data structures: t/99example....1..3 not ok 1 - differences in text # Failed test ((eval 2) at line 14) # +---+----------------+----------------+ # | Ln|Got |Expected | # +---+----------------+----------------+ # | 1|this is line 1 |this is line 1 | # * 2|this is line 2 |this is line b * # | 3|this is line 3 |this is line 3 | # +---+----------------+----------------+ not ok 2 - differences in whitespace # Failed test ((eval 2) at line 20) # +---+------------------+------------------+ # | Ln|Got |Expected | # +---+------------------+------------------+ # | 1| indented | indented | # * 2| indented | indented * # | 3| indented | indented | # +---+------------------+------------------+ not ok 3 # Failed test ((eval 2) at line 22) # +----+-------------------------------------+----------------------------+ # | Elt|Got |Expected | # +----+-------------------------------------+----------------------------+ # * 0|bless( [ |[ * # * 1| 'Move along, nothing to see here' | 'Dry, humorless message' * # * 2|], 'Test::Builder' ) |] * # +----+-------------------------------------+----------------------------+ # Looks like you failed 3 tests of 3. eq_or_diff_...() compares two strings or (limited) data structures and either emits an ok indication or a side-by-side diff. Test::Differences is designed to be used with Test.pm and with Test::Simple, Test::More, and other Test::Builder based testing modules. As the SYNOPSIS shows, another testing module must be used as the basis for your test suite. These functions assume that you are presenting it with "flat" records, looking like: - scalars composed of record-per-line - arrays of scalars, - arrays of arrays of scalars, - arrays of hashes containing only scalars All of these are flattened in to single strings which are then compared for differences. Differently data structures can be compared, as long as they flatten identically. All other data structures are run through Data::Dumper first. This is a bit dangerous, as some versions of perl shipped with Data::Dumpers that could do the oddest things with unexpected, like core dump. Only as of 5.8.0 does Data::Dumper sort hash keys, which is necessary for HASH dumps to be fully predictable. This will be changed when this bites somebody or I get some free time. "eq_or_diff()" starts counting records at 0 unless you pass it two text strings: eq_or_diff $a, $b; ## First line is line number 1 eq_or_diff @a, @b; ## First element is element 0 eq_or_diff $a, @b; ## First line/element is element 0 If you want to force a first record number of 0, use "eq_or_diff_data". If you want to force a first record number of 1, use "eq_or_diff_text". I chose this over passing in an options hash because it's clearer and simpler this way. YMMV. OPTIONS
There is currently only one option: "context". This allows you to control the amount of context shown: eq_or_diff $got, $expected, $name, { context => 50000 }; will show you lots and lots of context. Normally, eq_or_diff() uses some heuristics to determine whether to show 3 lines of context (like a normal unified diff) or 25 lines. DIFF STYLES
For extremely long strings, a table diff can wrap on your screen and be hard to read. If you are comfortable with different diff formats, you can switch to a format more suitable for your data. These are the four formats supported by the Text::Diff module and are set with the following functions: o "table_diff" (the default) o "unified_diff" o "oldstyle_diff" o "context_diff" You can run the following to understand the different diff output styles: use Test::More 'no_plan'; use Test::Differences; my $long_string = join '' => 1..40; TODO: { local $TODO = 'Testing diff styles'; # this is the default and does not need to explicitly set unless you need # to reset it back from another diff type table_diff; eq_or_diff $long_string, "-$long_string", 'table diff'; unified_diff; eq_or_diff $long_string, "-$long_string", 'unified diff'; context_diff; eq_or_diff $long_string, "-$long_string", 'context diff'; oldstyle_diff; eq_or_diff $long_string, "-$long_string", 'oldstyle diff'; } DEPLOYING
There are several basic ways of deploying Test::Differences requiring more or less labor by you or your users. o Fallback to "is_deeply". This is your best option if you want this module to be optional. use Test::More; BEGIN { if (!eval q{ use Test::Differences; 1 }) { *eq_or_diff = &is_deeply; } } o eval "use Test::Differences"; If you want to detect the presence of Test::Differences on the fly, something like the following code might do the trick for you: use Test qw( !ok ); ## get all syms *except* ok eval "use Test::Differences"; use Data::Dumper; sub ok { goto &eq_or_diff if defined &eq_or_diff && @_ > 1; @_ = map ref $_ ? Dumper( @_ ) : $_, @_; goto Test::&ok; } plan tests => 1; ok "a", "b"; o PREREQ_PM => { .... "Test::Differences" => 0, ... } This method will let CPAN and CPANPLUS users download it automatically. It will discomfit those users who choose/have to download all packages manually. o t/lib/Test/Differences.pm, t/lib/Text/Diff.pm, ... By placing Test::Differences and its prerequisites in the t/lib directory, you avoid forcing your users to download the Test::Differences manually if they aren't using CPAN or CPANPLUS. If you put a "use lib "t/lib";" in the top of each test suite before the "use Test::Differences;", "make test" should work well. You might want to check once in a while for new Test::Differences releases if you do this. LIMITATIONS
"Test" or "Test::More" This module "mixes in" with Test.pm or any of the test libraries based on Test::Builder (Test::Simple, Test::More, etc). It does this by peeking to see whether Test.pm or Test/Builder.pm is in %INC, so if you are not using one of those, it will print a warning and play dumb by not emitting test numbers (or incrementing them). If you are using one of these, it should interoperate nicely. Exporting Exports all 3 functions by default (and by design). Use use Test::Differences (); to suppress this behavior if you don't like the namespace pollution. This module will not override functions like ok(), is(), is_deeply(), etc. If it did, then you could "eval "use Test::Differences qw( is_deeply );"" to get automatic upgrading to diffing behaviors without the "sub my_ok" shown above. Test::Differences intentionally does not provide this behavior because this would mean that Test::Differences would need to emulate every popular test module out there, which would require far more coding and maintenance that I'm willing to do. Use the eval and my_ok deployment shown above if you want some level of automation. Unicode Perls before 5.6.0 don't support characters > 255 at all, and 5.6.0 seems broken. This means that you might get odd results using perl5.6.0 with unicode strings. "Data::Dumper" and older Perls. Relies on Data::Dumper (for now), which, prior to perl5.8, will not always report hashes in the same order. $Data::Dumper::SortKeys is set to 1, so on more recent versions of Data::Dumper, this should not occur. Check CPAN to see if it's been peeled out of the main perl distribution and backported. Reported by Ilya Martynov <ilya@martynov.org>, although the SortKeys "future perfect" workaround has been set in anticipation of a new Data::Dumper for a while. Note that the two hashes should report the same here: not ok 5 # Failed test (t/ctrl/05-home.t at line 51) # +----+------------------------+----+------------------------+ # | Elt|Got | Elt|Expected | # +----+------------------------+----+------------------------+ # | 0|{ | 0|{ | # | 1| 'password' => '', | 1| 'password' => '', | # * 2| 'method' => 'login', * | | # | 3| 'ctrl' => 'home', | 2| 'ctrl' => 'home', | # | | * 3| 'method' => 'login', * # | 4| 'email' => 'test' | 4| 'email' => 'test' | # | 5|} | 5|} | # +----+------------------------+----+------------------------+ Data::Dumper also overlooks the difference between $a[0] = $a[1]; $a[1] = $a[0]; # $a[0] = $a[1] and $x = $y; $y = $x; @a = ( $x, $y ); # $a[0] = $y, not $a[1] The former involves two scalars, the latter 4: $x, $y, and @a[0,1]. This was carefully explained to me in words of two syllables or less by Yves Orton <demerphq@hotmail.com>. The plan to address this is to allow you to select Data::Denter or some other module of your choice as an option. AUTHOR
Barrie Slaymaker <barries@slaysys.com> MAINTAINER
Curtis "Ovid" Poe <ovid@cpan.org> LICENSE
Copyright 2001-2008 Barrie Slaymaker, All Rights Reserved. You may use this software under the terms of the GNU public license, any version, or the Artistic license. perl v5.16.3 2009-10-17 Test::Differences(3)
All times are GMT -4. The time now is 06:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy